export const useRandomColor = () => {
    //设置一个随机颜色写法
    const useRandomNum = () => Math.random() * 255
    return `
    rgb(
        ${useRandomNum()},${useRandomNum()},${useRandomNum()}
    )
    `
}


export const useColorMap = (map) => {
    return (key) => map.get(key)
}